import 'package:ecy_app_flutter/routes/group/model/EcyImages.dart';
import 'package:json_annotation/json_annotation.dart';

part 'ValleyCirclePost.g.dart';

@JsonSerializable()
class ValleyCirclePost {
  ValleyCirclePost();

  int? id;
  String? userName;
  String? userId;
  String? userImgUrl;
  String? title;
  String? content;
  String? createTime;
  int? likeCount;
  int? commentCount;
  String? mainImage;
  String? status;
  String? updateTime;
  bool? like;
  String? currentUser;
  List<EcyImages>? valleyCirclePostImageList;
  
  factory ValleyCirclePost.fromJson(Map<String,dynamic> json) => _$ValleyCirclePostFromJson(json);
  Map<String, dynamic> toJson() => _$ValleyCirclePostToJson(this);
}
